//此函数用户将POST请求的参数拼接到url后面，为了实现这个坑爹的RestFulPost
function POST_Trim(data){
    const keys = Object.keys(data)
    let params = '?'
    for (let i = 0; i < keys.length; i++) {
        const key = keys[i]
        let value = data[key]
        if (value != null && value != '') {
            if (i != 0) {
                params += '&'
            }
            //对特殊字符进行转义
            value = encodeURIComponent(value)
            params += key + '=' + value
        }
    }
    return params;
}
export default POST_Trim